<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h3>模板复用</h3>
<footer th:fragment="copy" id="1">
    This is footer in demo13.html;
</footer>

<!--在本标签内引入-->
<div th:insert="::copy"></div>
<!--全部引入,替换本标签内容-->
<div th:replace="::copy"></div>
<!--引入时用本标签替换要引用的标签模块-->
<div th:include="include::copy"></div>


</body>
</html>